package com.wlk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wlk.pojo.Reimb;
import com.wlk.pojo.dto.ReimbDTO;
import com.wlk.pojo.dto.ZzstDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface ReimbMapper extends BaseMapper<Reimb> {
    Integer isProInUse(@Param("proCode") String proCode);

    Integer addReimb(Reimb reimb);

    Integer updateStatusByVerifier(@Param("reiOrderNum")String reiOrderNum,@Param("status")Integer status ,@Param("verifierId")Integer verifierId);

    List<ReimbDTO> getReimbList();

    List<ReimbDTO> getReimbListByApplicantId(@Param("userId")Integer userId);

    List<ReimbDTO> getPendingReimbList();

    Integer isExistReimbByProCode(@Param("proCode") String proCode);

    BigDecimal getTotalPassedReiMoneyByYearMonthWithProCode(@Param("proCode") String proCode,@Param("yearId") String yearId,@Param("monthId") String monthId);

    ReimbDTO getReimbByOrderNum(String reiOrderNum);

    List<ZzstDTO> getZzst();
}
